same-origin policy 예문
예문
- For security reasons, browsers restrict cross-origin HTTPÂ requests initiated from within scripts. For example, XMLHttpRequest and Fetch follow the same-origin policy . So, a web application using XMLHttpRequest or Fetch could only make HTTP requests to its own domain.
보안 상의 이유로, 브라우저들은 스크립트 내에서 초기화되는 cross-origin HTTP 요청을 제한합니다. 예를 드면, XMLHttpRequest 는 same-origin 정책 을 따르기에, XMLHttpRequest 을 사용하는 웹 애플리케이션은 자신과 동일한 도메인으로 HTTP 요청을 보내는 것만 가능했습니다.